package com.example.makerspace.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.web.multipart.MultipartFile;

@EqualsAndHashCode(callSuper = true)
@TableName(value = "product_bulletins")
@Data
@Document(indexName = "product_bulletins")
public class ProductBulletinsDO extends  BaseDO{
    @Field(name = "title", type = FieldType.Text, analyzer="ik_max_word")
    private String title;
    @Field(name = "image", type = FieldType.Text, analyzer="ik_max_word")
    private String image;
    @Field(name = "content", type = FieldType.Text, analyzer="ik_max_word")
    private  String content;
    @Field(name = "rich_content", type = FieldType.Text, analyzer="ik_max_word")
    private  String richContent;
}
